#!/bin/bash

if [ $# -ne 1 ]
then
    echo "Levantando maquina virtual i386, levantando Soporte de Red"
    qemu-system-i386 -hda debian_lenny_i386_standard.qcow2 -net nic,macaddr=52:54:00:12:34:56,model=e1000 -net socket,mcast=230.0.0.1:1234 &
else
    echo "Levantando maquina virtual i386 con soporte ssh en 7777"
    qemu-system-i386 -hda debian_lenny_i386_standard.qcow2 -net nic,vlan=1,macaddr=52:54:00:12:34:56,model=e1000 -net user,vlan=1 -redir tcp:7777:10.0.2.20:22 &
fi

